<div id="main_block">
<?php 
/* @var $article OxArticle */
echo $article->show(); 
?>
    
<div id="flagDlg">
<h1>Flag the article to alert the readers.</h1>
Give an explanation (optional, adds power to the flag):
<textarea id="flagExplanationText" rows="2" cols="35"></textarea>
<br/>
<?php foreach($flags as $flag) { ?>
<a HREF="javascript:flagArticle(<?php echo $article->idarticle;?>,'<?php echo $flag->idflag_type;?>')"><?php echo $flag->flag_type_name;?></a>
<?php } ?>
<a style="float: right;" HREF="javascript:hideFlagDialog()">Cancel</a>
</div>

</div>